package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 产品库存
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("product_repertory")
public class ProductRepertory extends Model<ProductRepertory> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 商品ID
     */
    @TableField("product_id")
    private String productId;
    /**
     * 数量
     */
    @TableField("product_num")
    private Integer productNum;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 状态
     */
    private String state;
    /**
     * sku名称
     */
    @TableField("sku_name")
    private String skuName;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 产品代码
     */
    @TableField("product_code")
    private String productCode;
    /**
     * 图片
     */
    private String picture;
    /**
     * 修改时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 删除状态
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 产品属性id1
     */
    @TableField("product_arr_id1")
    private String productArrId1;
    /**
     * 产品属性id2
     */
    @TableField("product_arr_id2")
    private String productArrId2;
    /**
     * 销量
     */
    private Integer sales;
    /**
     * 警告值
     */
    @TableField("notice_num")
    private Integer noticeNum;
    /**
     * 进货价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;
    /**
     * 销售价
     */
    @TableField("sell_price")
    private BigDecimal sellPrice;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public String getProductArrId1() {
        return productArrId1;
    }

    public void setProductArrId1(String productArrId1) {
        this.productArrId1 = productArrId1;
    }

    public String getProductArrId2() {
        return productArrId2;
    }

    public void setProductArrId2(String productArrId2) {
        this.productArrId2 = productArrId2;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getNoticeNum() {
        return noticeNum;
    }

    public void setNoticeNum(Integer noticeNum) {
        this.noticeNum = noticeNum;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public BigDecimal getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(BigDecimal sellPrice) {
        this.sellPrice = sellPrice;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductRepertory{" +
        "id=" + id +
        ", productId=" + productId +
        ", productNum=" + productNum +
        ", price=" + price +
        ", state=" + state +
        ", skuName=" + skuName +
        ", createDate=" + createDate +
        ", productCode=" + productCode +
        ", picture=" + picture +
        ", updateDate=" + updateDate +
        ", logicDelete=" + logicDelete +
        ", productArrId1=" + productArrId1 +
        ", productArrId2=" + productArrId2 +
        ", sales=" + sales +
        ", noticeNum=" + noticeNum +
        ", costPrice=" + costPrice +
        ", sellPrice=" + sellPrice +
        "}";
    }
}
